/**
 * Author: w景洋.
 * Time: 2016/9/5 0005
 */
var entrance = angular.module('entrance', [
 
    'ngAnimate',
    'ui.router',
    'entrance.module.homepage', 
 

    'entrance.service.auth',
])
entrance.run(
    [          '$rootScope', '$state', '$stateParams',
        function ($rootScope,   $state,   $stateParams) {
            $rootScope.$state = $state;
            $rootScope.$stateParams = $stateParams;
        }
    ]
)

entrance.config(
    [          '$stateProvider', '$urlRouterProvider','$locationProvider',
        function ($stateProvider,   $urlRouterProvider,$locationProvider) {
            $urlRouterProvider
                .otherwise('/');
        }
    ]
);